projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61446fe
)
(rmail-sort-from-summary): Preserve window selection.
author
Karl Heuer
<kwzh@gnu.org>
Wed, 30 Mar 1994 02:21:19 +0000
(
02:21
+0000)
committer
Karl Heuer
<kwzh@gnu.org>
Wed, 30 Mar 1994 02:21:19 +0000
(
02:21
+0000)
lisp/mail/rmailsum.el
patch
|
blob
|
history
diff --git
a/lisp/mail/rmailsum.el
b/lisp/mail/rmailsum.el
index 4c502b27870a2a8af8631bbba48629d615b554f9..d15d4a2bf2213e8ab105f1afc32a5e9209cb2d6a 100644
(file)
--- a/
lisp/mail/rmailsum.el
+++ b/
lisp/mail/rmailsum.el
@@
-1111,8
+1111,10
@@
If prefix argument REVERSE is non-nil, sort them in reverse order."
(defun rmail-sort-from-summary (sortfun reverse)
"Sort Rmail messages from Summary buffer and update it after sorting."
(require 'rmailsort)
- (pop-to-buffer rmail-buffer)
- (funcall sortfun reverse)
- (rmail-summary))
+ (let ((selwin (selected-window)))
+ (unwind-protect
+ (progn (pop-to-buffer rmail-buffer)
+ (funcall sortfun reverse))
+ (select-window selwin))))
;;; rmailsum.el ends here